package com.xc.disk.bean;

import lombok.Data;

/**
 * <p>项目名称: Stars</p>
 * <p>描述: 查询条件实体类</p>
 * <P>创建人: 小程</p>
 * <P>创建人邮箱: 779943476@qq.com</p>
 * <p>创建时间: 2019/7/1</p>
 *
 * @version v1.0
 */
@Data
public class QueryBean {
    /**
     * 排序字段
     */
    private String[] sortFields;

    /**
     * asc从小到大排列，即升序
     * desc从大到小排序，即降序
     * 排序规则
     */
    private String rule = "ASC";

    /**
     * 模糊查询字段
     */
    private String[] likeFields;

    public QueryBean() {
    }

    public QueryBean(String[] sortFields, String rule, String[] likeFields) {
        this.sortFields = sortFields;
        this.rule = rule;
        this.likeFields = likeFields;
    }
}
